package com.shaonianyou.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.google.common.collect.Maps;

/**
 * 我的积分
 * 
 * @author Empty
 *
 */
@Controller
@RequestMapping("/point")
public class PointController extends BaseController {

	/**
	 * 账户积分信息查询
	 * 
	 * @param code
	 * @param request
	 * @return
	 */
	@RequestMapping("/queryAccountInfo")
	@ResponseBody
	public Map<String, Object> queryAccountInfo(String code, HttpServletRequest request) {
		Map<String, Object> param = Maps.newHashMap();
		param.put("custId", request.getSession().getAttribute("custId"));
		return doPost("/account", param);
	}

}
